import wave
import soundfile as sf

if '__main__' == __name__:
    xpath = r'D:\_dell7590_root\tmp\1output.wav'
    w = wave.open(xpath, 'rb')
    print(w.getframerate())
    print(w.getnchannels())
    print(w.getnframes())
    print(w.getsampwidth())
    print(w.getparams())

    ob = sf.SoundFile(xpath)
    print(ob.samplerate)
    print(ob.channels)
    print(ob.subtype)
    print(ob.subtype_info)
    print(ob.endian)
    print(ob.format)
    print(ob.format_info)
    print(ob.mode)
    print(ob.name)
    print(ob.sections)
